<%--
  Created by IntelliJ IDEA.
  User: Ailck
  Date: 2019/8/29
  Time: 11:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <script src="js/jquery-3.4.1.min.js"></script>
    <script>
        var test = function(){
            $("#kk2").on("click",function () {
                alert("123");
            })
        }
    </script>
</head>
<body>
    <div onclick="test()" id="kk1">点我1</div>
    <div id="kk2">点我2</div>
</body>
</html>
